/* Campanha, doação, pagamento, doação mensal, comprovante e área do doador, na casca do layout: entra depois do casca.css,
   com os tokens e os botões de lá. A gaveta do checkout (.gaveta) vai para o fim do <body>. Campos seguem o formulário de
   contato do layout: campo branco de canto 10px. Os componentes (valores, abas, gaveta) vêm do app.css. Só estas páginas o
   carregam: com as campanhas desligadas, ele só sai para o doador existente (pelo token da página dele). */

.progress { height: 8px; border-radius: var(--radius-pill); background: var(--line); overflow: hidden; margin: var(--s-2) 0; }
.progress-fill { display: block; height: 100%; border-radius: var(--radius-pill); background: var(--action); }
.w-0 { width: 0%; }
.w-5 { width: 5%; }
.w-10 { width: 10%; }
.w-15 { width: 15%; }
.w-20 { width: 20%; }
.w-25 { width: 25%; }
.w-30 { width: 30%; }
.w-35 { width: 35%; }
.w-40 { width: 40%; }
.w-45 { width: 45%; }
.w-50 { width: 50%; }
.w-55 { width: 55%; }
.w-60 { width: 60%; }
.w-65 { width: 65%; }
.w-70 { width: 70%; }
.w-75 { width: 75%; }
.w-80 { width: 80%; }
.w-85 { width: 85%; }
.w-90 { width: 90%; }
.w-95 { width: 95%; }
.w-100 { width: 100%; }
.donate-form { margin-top: var(--s-4); }
.amounts legend { display: block; font-weight: 700; font-size: var(--text-sm); color: var(--ink); margin-bottom: var(--s-1); }
.field input[type='text'], .field input:not([type]), .field input[type='email'], .field input[type='tel'], .field input[type='password'], .pix-box textarea { width: 100%; min-height: 48px; padding: var(--s-2) var(--s-3); border: 1.5px solid var(--field-border); border-radius: var(--radius-field); font: inherit; color: var(--ink); background: var(--surface); transition: border-color 0.2s, box-shadow 0.2s; }
.field input:focus-visible, .pix-box textarea:focus-visible { border-color: var(--accent); outline: 2px solid var(--accent); outline-offset: 0; box-shadow: 0 0 0 5px rgb(15 15 15 / 0.08); }
.field input[aria-invalid='true'] { border-color: var(--danger); }
.field-error { margin: var(--s-1) 0 0; font-size: var(--text-sm); font-weight: 600; color: var(--danger); }
.form-alert { scroll-margin-top: calc(var(--header-h) + var(--s-4)); border: 2px solid var(--danger); border-radius: var(--radius); background: var(--surface); padding: var(--s-3) var(--s-4); margin-bottom: var(--s-4); color: var(--danger); }
.form-alert p { margin: 0 0 var(--s-1); font-weight: 600; }
.form-alert ul { margin: 0; padding-left: var(--s-4); }
.form-alert a { color: var(--danger); }
.amounts { border: 0; margin: 0 0 var(--s-2); padding: 0; }
.amount-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-2); margin-bottom: var(--s-3); }
.amount-option { position: relative; }
.amount-option input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.amount-option span { position: relative; display: flex; align-items: center; justify-content: center; min-height: 52px; border: 1.5px solid var(--field-border); border-radius: var(--radius); font-size: var(--text-lg); font-weight: 800; letter-spacing: -0.012em; color: var(--ink); background: var(--surface); font-variant-numeric: tabular-nums; transition: background-color 0.2s, border-color 0.2s, color 0.2s; }
.amount-option input:hover + span { border-color: var(--accent); }
.amount-option input:checked + span { border-color: var(--action); background: var(--action); color: var(--on-action); box-shadow: var(--shadow-cta); }
.amount-option input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.metodos { border: 0; margin: 0 0 var(--s-3); padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(6.5rem, 1fr)); gap: var(--s-2); }
.metodos legend { display: block; font-weight: 700; font-size: var(--text-sm); color: var(--ink); margin-bottom: var(--s-1); padding: 0; }
.metodo-option { position: relative; }
.metodo-option input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.metodo-option span { display: flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 var(--s-2); text-align: center; border: 1.5px solid var(--field-border); border-radius: var(--radius); font-weight: 700; color: var(--ink); background: var(--surface); transition: background-color 0.2s, border-color 0.2s; }
.metodo-option input:checked + span { border: 2px solid var(--accent); background: var(--accent-soft); color: var(--accent); }
.metodo-option input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.cartao-campos { border: 1px solid var(--line); border-radius: var(--radius); margin: 0 0 var(--s-3); padding: var(--s-3) var(--s-4); min-width: 0; }
.cartao-campos legend { font-weight: 700; color: var(--ink); padding: 0 var(--s-1); }
.field-check .field-error { grid-column: 1 / -1; }
.donation-page { text-align: left; }
.total-big { display: inline-flex; align-items: baseline; gap: 0.3em; margin: 0 0 var(--s-2); padding: var(--s-2) var(--s-5); border: 1px solid var(--accent-line); border-radius: var(--radius-pill); background: var(--accent-soft); color: var(--accent); font: 400 var(--text-xl)/1.2 var(--font-serif); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.pix-box { margin: var(--s-5) 0; scroll-margin-top: calc(var(--header-h) + var(--s-4)); }
.pix-qr { width: 264px; max-width: 100%; height: auto; margin: 0 auto var(--s-4); padding: var(--s-3); image-rendering: pixelated; background: var(--surface); border: 2px solid var(--accent-line); border-radius: var(--radius-card); }
.pix-box label { display: block; font-weight: 700; color: var(--ink); margin-bottom: var(--s-1); }
.pix-box textarea { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: var(--text-sm); word-break: break-all; resize: none; margin-bottom: var(--s-3); }
.pix-steps { margin: var(--s-4) 0; padding-left: var(--s-5); }
.pix-copiado { margin: 0 0 var(--s-3); font-weight: 700; color: var(--accent); }
.pix-copiado:empty { display: none; }
.pix-validade { margin: 0 0 var(--s-3); font-size: var(--text-sm); color: var(--ink-soft); }
/* O mesmo PIX de antes, ainda aberto (reaproveitado em vez de gerar outro): logo acima da validade. */
.pix-reuso { margin: 0 0 var(--s-1); font-size: var(--text-sm); font-weight: 600; }
.pix-falta { margin: var(--s-5) 0 0; font-size: var(--text-lg); text-wrap: balance; }
.pix-falta + .pix-steps { margin-top: var(--s-2); }
/* Quem recebe o PIX, perto do código: discreto, sem logo nem selo. */
.pix-confianca { margin: 0 0 var(--s-3); padding: var(--s-2) var(--s-3); border-left: 3px solid var(--accent-line); font-size: var(--text-sm); line-height: 1.5; color: var(--ink-soft); }
.pix-confianca p { margin: 0; }
.pix-confianca p + p { margin-top: var(--s-1); }
#pix-novo .pix-falta { margin-top: 0; }
#pix-novo form { margin: var(--s-4) 0 var(--s-3); }
#pix-novo > .muted { margin: 0; font-size: var(--text-sm); }
.receipt h1 { margin-bottom: var(--s-4); }
.print-only { display: none; }
.receipt-data { display: grid; gap: 0; margin: var(--s-5) 0; border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--surface-soft); }
.receipt-data div { display: grid; grid-template-columns: minmax(8rem, 1fr) 2fr; gap: var(--s-3); padding: var(--s-3) var(--s-4); border-bottom: 1px solid var(--line); }
.receipt-data div:last-child { border-bottom: 0; }
.receipt-data dt { font-weight: 700; color: var(--ink); }
.receipt-data dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 30rem) {
  .receipt-data div { grid-template-columns: 1fr; gap: var(--s-1); }
}
@media print {
  .no-print { display: none !important; }
  .receipt a { color: #000; text-decoration: none; }
  .print-only { display: block; }
  .receipt-logo { margin-bottom: 16px; }
}
.field-row { display: grid; gap: var(--s-4); }
@media (min-width: 40rem) {
  .field-row { grid-template-columns: 1fr 1fr; }
}
.form-ok { scroll-margin-top: calc(var(--header-h) + var(--s-4)); }
.form-ok { border: 2px solid var(--teal-700); border-radius: var(--radius-sm); background: var(--white); padding: var(--s-3) var(--s-4); margin-bottom: var(--s-4); color: var(--navy-900); }
.campanha-extra { grid-area: extra; min-width: 0; display: grid; gap: var(--s-6); align-content: start; }
@media (min-width: 64rem) {
  .campanha-extra { max-width: var(--measure); }
}
.meta-painel { padding-top: var(--s-5); border-top: 1px solid var(--line); }
@media (min-width: 64rem) {
  .meta-painel { padding-top: 0; border-top: 0; }
}
.meta-topo { display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); margin: 0; font-size: var(--text-xs); font-weight: 700; letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--muted); }
.meta-pct { background: var(--warm-soft); color: var(--warm-text); border-radius: var(--radius-pill); padding: 0 var(--s-3); font-size: var(--text-sm); letter-spacing: 0; font-variant-numeric: tabular-nums; }
.meta-painel .progress { height: 8px; margin: var(--s-3) 0 var(--s-4); }
.meta-painel .progress-fill { position: relative; overflow: hidden; }
.meta-painel .progress-fill::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 55%, rgb(255 255 255 / 0.45) 80%, transparent); animation: brilho 2.4s ease-in-out 1.4s; transform: translateX(-100%); }
.progress-fill { transform-origin: left; animation: encher 1.4s cubic-bezier(0.4, 0, 0.2, 1) both; transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1); }
.meta-numeros dd.mudou { animation: realce 1.6s ease-out; }
.meta-pct.mudou { animation: pulsar 1.2s ease-out; }
.meta-numeros { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-2) var(--s-4); margin: 0; font-variant-numeric: tabular-nums; }
.meta-numeros div { display: flex; flex-direction: column; gap: 2px; text-align: center; }
.meta-numeros div:first-child { text-align: left; }
.meta-numeros div:last-child:not(:first-child) { text-align: right; }
.meta-numeros dd { margin: 0; order: -1; font-weight: 700; color: var(--ink-soft); font-size: var(--text-base); line-height: 1.1; letter-spacing: -0.012em; }
.meta-numeros div:first-child dd { font-size: var(--text-xl); font-weight: 800; color: var(--ink); letter-spacing: -0.022em; }
.meta-numeros dt { font-size: var(--text-xs); font-weight: 700; letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--muted); }
.revelar { opacity: 0; transform: translateY(16px); transition: opacity 0.5s ease-out, transform 0.5s ease-out; }
.revelar.visivel { opacity: 1; transform: none; }
.donate-box { padding: var(--s-5) 0 0; }
@media (min-width: 64rem) {
  .donate-box { padding-top: 0; }
}
.titulo-acao { margin: 0 0 var(--s-4); font-size: var(--text-lg); text-align: center; }
.valores-rapidos { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-2); padding-top: var(--s-2); }
.valores-rapidos li:last-child:nth-child(odd) { grid-column: 1 / -1; }
.valor-rapido { position: relative; display: flex; align-items: baseline; justify-content: center; gap: var(--s-1); min-height: 56px; padding: var(--s-3); border-radius: var(--radius); background: var(--action); color: var(--on-action); font-size: var(--text-lg); font-weight: 800; letter-spacing: -0.012em; text-decoration: none; font-variant-numeric: tabular-nums; transition: background-color 0.2s, box-shadow 0.2s, transform 0.12s; align-items: center; }
.valor-rapido small { font-size: var(--text-sm); font-weight: 700; letter-spacing: 0; }
.valor-rapido:hover { background: var(--action-hover); color: var(--on-action); box-shadow: var(--shadow-cta-hover); }
.valor-rapido:active { transform: scale(0.98); }
.donate-note { margin: 0 0 var(--s-4); text-align: center; }
.selos-confianca { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-1) var(--s-3); margin: var(--s-4) 0 0; font-size: var(--text-sm); color: var(--muted); }
.selos-confianca li::before { content: '✓'; margin-right: var(--s-1); font-weight: 700; color: var(--accent); }
.selos-pagamento { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-1) var(--s-3); margin: var(--s-3) 0 0; font-size: 0.8125rem; line-height: 1.4; color: var(--ink-soft); }
.selos-pagamento li { display: inline-flex; align-items: center; gap: var(--s-1); text-align: center; }
.selos-pagamento svg { flex: none; width: 1.1em; height: 1.1em; color: var(--action); }
/* PIX avulso: "pelo Banco do Brasil"; cartão, único ou mensal: "pela Cielo". Pix Automático e navegador sem :has(): só "Pagamento seguro". */
.selo-pix, .selo-cartao { display: none; }
form:not(:has([name='tipo'][value='mensal']:checked)):has([name='metodo'][value='pix']:is(:checked, [type='hidden'])) .selo-pix,
form:not(:has([name='tipo'][value='mensal']:checked)):has([name='metodo'][value='cartao']:is(:checked, [type='hidden'])) .selo-cartao,
form:has([name='tipo'][value='mensal']:checked):has([name='metodo_mensal'][value='cartao_recorrente']:is(:checked, [type='hidden'])) .selo-cartao { display: inline; }
.donate-legal { margin: var(--s-3) 0 0; font-size: var(--text-xs); line-height: 1.5; color: var(--muted); text-align: center; }
.recentes { background: var(--surface-soft); border: 1px solid var(--line); border-radius: var(--radius-card); padding: var(--s-5) var(--s-4) 0; }
.recentes-topo { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--s-1) var(--s-3); padding-bottom: var(--s-3); border-bottom: 1px solid var(--line); }
.recentes-topo h2 { margin: 0; font-size: var(--text-lg); }
.recentes-contagem { font-size: var(--text-sm); font-weight: 600; color: var(--muted); }
.recentes-lista li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: 'ini nome valor' 'ini tempo valor'; align-items: center; column-gap: var(--s-3); padding: var(--s-2) 0; animation: surgir 0.4s ease-out both; }
.recentes-lista li + li { border-top: 1px solid var(--line); }
.recentes-lista li:nth-child(2) { animation-delay: 0.05s; }
.recentes-lista li:nth-child(3) { animation-delay: 0.1s; }
.recentes-lista li:nth-child(n + 4) { animation-delay: 0.15s; }
.recentes-ini { grid-area: ini; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-size: var(--text-sm); font-weight: 700; }
.recentes-lista li:nth-child(4n+2) .recentes-ini { background: var(--orange-50); color: var(--warm-text); }
.recentes-lista li:nth-child(4n+3) .recentes-ini { background: var(--info-soft); color: var(--info); }
.recentes-lista li:nth-child(4n) .recentes-ini { background: var(--danger-soft); color: var(--danger); }
.recentes-nome { grid-area: nome; font-weight: 600; color: var(--ink); line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recentes-lista strong { grid-area: valor; padding: var(--s-1) var(--s-3); border-radius: var(--radius-pill); background: var(--accent-soft); color: var(--accent); font-size: var(--text-sm); font-variant-numeric: tabular-nums; }
.recentes-lista time { grid-area: tempo; font-size: var(--text-xs); color: var(--muted); }
.recentes-rodape { margin: 0; padding: var(--s-3) 0; border-top: 1px solid var(--line); text-align: center; font-size: var(--text-xs); font-weight: 700; color: var(--accent); }
.recentes-rodape::before { content: '✓ '; }
.checkout h2 { margin-bottom: var(--s-2); }
}
html:has(dialog.gaveta[open]) { overflow: hidden; }
.gaveta { padding: 0; border: 0; background: transparent; width: 100%; max-width: 32rem; max-height: 100dvh; margin: auto auto 0; overflow: visible; }
.gaveta::backdrop { background: rgb(15 15 15 / 0.5); backdrop-filter: blur(3px); }
.gaveta[open] { animation: subir 0.35s cubic-bezier(0.34, 1.2, 0.64, 1); }
.gaveta[open]::backdrop { animation: aparecer 0.3s ease-out; }
.gaveta-caixa { display: flex; flex-direction: column; max-height: 92dvh; background: var(--surface); border-radius: var(--radius-lg) var(--radius-lg) 0 0; padding: var(--s-3) var(--s-4) calc(var(--s-4) + env(safe-area-inset-bottom)); box-shadow: var(--shadow-modal); }
.gaveta-caixa::before { content: ''; align-self: center; width: 40px; height: 4px; border-radius: 999px; background: var(--border); margin-bottom: var(--s-2); }
@media (min-width: 40rem) {
  .gaveta { margin: auto; max-width: 28rem; }
  .gaveta-caixa { border-radius: var(--radius-card); max-height: 90dvh; padding: var(--s-4) var(--s-5) var(--s-5); }
  .gaveta-caixa::before { display: none; }
}
.gaveta-topo { display: grid; grid-template-columns: 5rem 1fr 5rem; align-items: center; }
.gaveta-titulo { grid-column: 2; margin: 0; text-align: center; font-size: var(--text-xl); }
.gaveta-titulo:focus { outline: none; }
.gaveta-voltar, .gaveta-fechar { min-width: 44px; min-height: 44px; border: 0; background: none; font: 600 var(--text-sm) var(--font); color: var(--muted); cursor: pointer; }
.gaveta-voltar { grid-column: 1; justify-self: start; padding: 0; }
.gaveta-voltar::before { content: '← '; }
.gaveta-fechar { grid-column: 3; justify-self: end; width: 44px; border-radius: 50%; background: var(--line); font-size: 1.5rem; font-weight: 400; line-height: 1; }
.gaveta-fechar:hover { background: var(--border); color: var(--ink); }
.gaveta-passos { display: flex; justify-content: center; gap: var(--s-2); margin: var(--s-2) 0 var(--s-3); padding: 0; list-style: none; }
.gaveta-passos li { width: 8px; height: 8px; border-radius: 999px; background: var(--border); transition: width 0.3s, background-color 0.3s; }
.gaveta-passos li.feito { background: var(--accent); }
.gaveta-passos li.feito:has(+ li:not(.feito)), .gaveta-passos li.feito:last-child { width: 24px; }
/* Valor escolhido e "Trocar valor": um botão que volta ao passo do valor (lá ficam as abas única e mensal). */
.gaveta-trocar { align-self: center; display: inline-flex; align-items: baseline; gap: var(--s-3); min-height: 44px; margin: 0 0 var(--s-4); padding: var(--s-2) var(--s-4); border: 1px solid var(--accent-line); border-radius: var(--radius-pill); background: var(--accent-soft); font: 600 var(--text-sm) var(--font); color: var(--accent); cursor: pointer; }
.gaveta-trocar strong { font-family: var(--font-serif); font-size: var(--text-lg); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.gaveta-trocar span { text-decoration: underline; text-underline-offset: 3px; }
.gaveta-trocar:hover { border-color: var(--accent); }
.gaveta-trocar:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.gaveta-corpo { overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; margin: 0 calc(-1 * var(--s-4)); padding: var(--s-1) var(--s-4) var(--s-2); }
.gaveta .donate-form { margin-top: 0; }
.gaveta .amounts legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.gaveta .passo:not([hidden]) { animation: surgir 0.3s ease-out; }
.gaveta[data-direcao='avancar'] .passo:not([hidden]) { animation: da-direita 0.3s ease-out; }
.gaveta[data-direcao='voltar'] .passo:not([hidden]) { animation: da-esquerda 0.3s ease-out; }
.gaveta-caixa:not(.saindo) .gaveta-sair, .saindo :is(.gaveta-topo, .gaveta-passos, .gaveta-trocar, .gaveta-corpo) { display: none; }
.gaveta .cartao-campos { border: 0; padding: 0; margin: 0; }
.gaveta .cartao-campos legend { font-weight: 700; color: var(--ink); padding: 0; margin-bottom: var(--s-1); }
.gaveta .field-row { grid-template-columns: 1fr 1fr; }
.gaveta-sair { text-align: center; padding: var(--s-3) 0 0; animation: surgir 0.3s ease-out; }
.gaveta-sair h2 { font-size: var(--text-xl); }
.gaveta-sair h2:focus { outline: none; }
.gaveta-sair-mesmo { display: block; width: 100%; min-height: 44px; margin-top: var(--s-2); border: 0; border-radius: var(--radius-sm); background: none; font: 600 var(--text-sm) var(--font); color: var(--muted); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.gaveta-sair-mesmo:hover { color: var(--ink); }
.btn.enviando { opacity: 0.75; pointer-events: none; }
@keyframes encher { from { transform: scaleX(0); } }
@keyframes brilho { from { transform: translateX(-100%); } to { transform: translateX(200%); } }
@keyframes pulsar { 0% { box-shadow: 0 0 0 0 rgb(15 15 15 / 0.25); } 70% { box-shadow: 0 0 0 14px rgb(15 15 15 / 0); } 100% { box-shadow: 0 0 0 0 rgb(15 15 15 / 0); } }
@keyframes subir { from { transform: translateY(100%); } }
@keyframes aparecer { from { opacity: 0; } }
@keyframes surgir { from { opacity: 0; transform: translateY(8px); } }
@keyframes da-direita { from { opacity: 0; transform: translateX(32px); } }
@keyframes da-esquerda { from { opacity: 0; transform: translateX(-32px); } }
@keyframes realce { 0% { color: var(--teal-700); transform: scale(1.12); } 100% { transform: none; } }
@keyframes tracar { to { stroke-dashoffset: 0; } }
@keyframes estalar { 0% { transform: scale(0.6); opacity: 0; } 60% { transform: scale(1.08); opacity: 1; } 100% { transform: none; } }
.taxa-coberta { background: var(--accent-soft); border: 1.5px solid var(--accent-line); border-radius: var(--radius); padding: var(--s-3) var(--s-4); }
.taxa-coberta label strong { color: var(--ink); }
.taxa-coberta .hint { grid-column: 2; margin: 0; }
.selo-escolhido { position: absolute; top: -0.7rem; left: 50%; transform: translateX(-50%); padding: 0 var(--s-2); border-radius: 999px; background: var(--warm); color: var(--on-warm); font-size: 0.65rem; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; white-space: nowrap; line-height: 1.5; }
.amount-options { row-gap: var(--s-4); padding-top: var(--s-3); }
.check-pago { display: block; width: 72px; height: 72px; margin-bottom: var(--s-4); color: var(--accent); animation: estalar 0.5s ease-out both; }
.check-pago circle { stroke-dasharray: 152; stroke-dashoffset: 152; animation: tracar 0.6s ease-out 0.1s forwards; }
.check-pago path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: tracar 0.35s ease-out 0.6s forwards; }
@media (prefers-reduced-motion: reduce) {
  .check-pago circle, .check-pago path { stroke-dashoffset: 0; }
}
.btn-doar-mensal { margin-top: var(--s-3); flex-wrap: wrap; }
.selo-impacto { padding: 0 var(--s-2); border-radius: 999px; background: var(--warm); color: var(--on-warm); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; line-height: 1.6; }
.tipo-doacao { border: 0; margin: 0 0 var(--s-4); padding: 0; }
.abas-tipo { display: grid; grid-template-columns: 1fr 1fr; padding: var(--s-1); border-radius: var(--radius); background: var(--accent-soft); }
.abas-tipo label { position: relative; }
.abas-tipo input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.abas-tipo span { display: flex; align-items: center; justify-content: center; min-height: 44px; border-radius: var(--radius-sm); font-weight: 600; color: var(--muted); }
.abas-tipo input:checked + span { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.abas-tipo input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.por-que-mensal { margin-top: var(--s-4); }
.por-que-mensal h3 { font-size: var(--text-base); margin-bottom: var(--s-3); }
.por-que-mensal ul { display: grid; gap: var(--s-2); }
.por-que-mensal li { position: relative; padding: var(--s-3) var(--s-3) var(--s-3) calc(var(--s-3) + 1.75rem); border-radius: var(--radius); background: var(--accent-soft); font-size: var(--text-sm); color: var(--muted); }
.por-que-mensal li::before { content: '✓'; position: absolute; left: var(--s-3); top: var(--s-3); width: 1.25rem; height: 1.25rem; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: var(--white); font-size: 0.75rem; font-weight: 700; }
.por-que-mensal strong { display: block; color: var(--ink); font-size: var(--text-base); }
.aviso-mensal { grid-column: 1 / -1; margin: 0; }
@supports selector(:has(*)) {
  .donate-form:has(input[name="tipo"][value="mensal"]:checked) .so-unica, .donate-form:not(:has(input[name="tipo"][value="mensal"]:checked)) .so-mensal { display: none; }
}
/* Como doar (topo dos dados): anônima, já marcada, ou com o nome para o recibo; a escolhida fica em destaque. Anônima e fora
   da aba mensal, some o que é de quem se identifica e aparece o que é só dela. Sem suporte a :has e sem JavaScript, tudo à
   vista; o servidor decide pelo campo "sem_dados". */
.quem-doa { min-width: 0; margin: 0 0 var(--s-4); padding: 0; border: 0; }
.quem-doa legend { margin-bottom: var(--s-2); padding: 0; font-weight: 700; color: var(--ink); }
.quem-opcao { margin: 0; padding: var(--s-3) var(--s-4); border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--surface); transition: border-color 0.2s, background-color 0.2s; }
.quem-opcao + .quem-opcao { margin-top: var(--s-2); }
.quem-opcao:has(input:checked) { border-color: var(--accent-line); background: var(--accent-soft); }
.quem-opcao label { cursor: pointer; }
.quem-opcao label strong { color: var(--ink); }
.quem-opcao .hint { font-size: 0.8125rem; text-wrap: pretty; }
.quem-opcao details { grid-column: 2; }
.quem-opcao summary { display: inline-flex; align-items: center; min-height: 44px; border-radius: var(--radius-sm); font-size: var(--text-sm); color: var(--ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.quem-opcao summary::marker { content: ''; }
.quem-opcao summary::-webkit-details-marker { display: none; }
.aceite-anonima { margin-bottom: var(--s-3); }
/* "Outro valor" fora do mínimo ou do máximo, enquanto digita: a dica com os dois ganha destaque antes do erro. */
.hint.fora-da-faixa { color: var(--ink); font-weight: 700; }
@supports selector(:has(*)) {
  .donate-form:has(#sem_dados:checked):not(:has(input[name="tipo"][value="mensal"]:checked)) .so-identificada, .donate-form:not(:has(#sem_dados:checked)) .so-anonima, .donate-form:has(input[name="tipo"][value="mensal"]:checked) .so-anonima { display: none; }
}
.outro-valor { position: relative; display: grid; justify-items: center; margin-top: var(--s-4); padding: var(--s-5) var(--s-4); border: 1.5px dashed var(--field-border); border-radius: var(--radius-card); background: var(--surface); text-align: center; }
.outro-rotulo { font-size: var(--text-xs); font-weight: 700; letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--muted); }
.outro-display { display: flex; align-items: baseline; justify-content: center; gap: var(--s-1); margin-top: var(--s-3); font-variant-numeric: tabular-nums; }
.outro-display span { font-size: var(--text-base); font-weight: 600; color: var(--muted); }
.outro-display input { width: 5ch; field-sizing: content; min-width: 2ch; max-width: 8ch; padding: 0 var(--s-1); border: 0; border-bottom: 2px solid var(--line); border-radius: 0; background: transparent; font: var(--display-weight) 2.65rem/1.1 var(--font-display); letter-spacing: -0.027em; color: var(--ink); text-align: center; }
@supports (field-sizing: content) {
  .outro-display input { width: auto; }
}
.outro-display input:hover { border-bottom-color: var(--field-border); }
.outro-display input:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: var(--radius-sm); }
.outro-display input[aria-invalid='true'] { border-bottom-color: var(--danger); }
.outro-display input::placeholder { color: var(--muted); opacity: 1; }
.outro-dica { margin: var(--s-1) 0 0; font-size: var(--text-xs); color: var(--muted); }
.outro-valor .field-error { margin-top: var(--s-1); }
.outro-valor .btn-primary { margin-top: var(--s-4); min-height: 52px; }
html[data-texto] .selo-escolhido, html[data-leitura] .selo-escolhido { max-width: 100%; white-space: normal; text-align: center; }
html[data-texto] :is(.donate-box, .recentes), html[data-leitura] :is(.donate-box, .recentes) { min-width: 0; max-width: 100%; }
html[data-texto] .outro-valor > *, html[data-leitura] .outro-valor > * { min-width: 0; max-width: 100%; }

html[data-movimento] .revelar { opacity: 1 !important; transform: none !important; }

.perguntas details { border-bottom: 1px solid var(--line); }
.perguntas summary { display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); min-height: 52px; padding: var(--s-2) 0; font-weight: 700; color: var(--ink); cursor: pointer; list-style: none; }
.perguntas summary::-webkit-details-marker { display: none; }
.perguntas summary::after { content: '+'; font-size: var(--text-xl); line-height: 1; color: var(--warm-text); transition: transform 0.2s; }
.perguntas details[open] summary::after { transform: rotate(45deg); }
.perguntas details p { margin: 0 0 var(--s-3); color: var(--ink-soft); }
.perguntas details[open] p { animation: surgir 0.25s ease-out; }

/* Página da campanha (corpoCampanha na ilha da página do layout): do app.css, com os tokens acima. */
.rotulo { display: inline-flex; align-items: center; gap: var(--s-2); margin: 0 0 var(--s-3); font: 700 var(--text-xs)/1.4 var(--font); letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--muted); }
.rotulo::before { content: ''; width: 23px; height: 2px; background: var(--warm-line); }
.tag { display: inline-block; margin-bottom: var(--s-2); padding: var(--s-1) var(--s-3); border-radius: var(--radius-pill); background: var(--accent-soft); color: var(--accent); font-size: var(--text-sm); font-weight: 700; }
.timeline li { border-left: 3px solid var(--info); padding: 0 0 var(--s-4) var(--s-4); }
.timeline time { font-size: var(--text-sm); font-weight: 700; color: var(--info); }
.timeline p { margin: var(--s-1) 0 0; }
/* Estrutura da página antiga (a que a ABDESM preferiu): a ilha traz o título e a foto no topo. As seções do modelo do
   Framer que ela não tinha (capa rosa, "Sobre a campanha", "Converse com quem faz a ABDESM") saem só no CSS: o HTML
   continua igual ao que o runtime renderiza, então a hidratação não diverge. Com uma foto só, a faixa de fotos repetiria
   a capa. */
body:has(.abdesm-ilha .campanha) :is(section[data-framer-name="Banner Section"], section[data-framer-name="Contacts Section"]),
body:has(.abdesm-ilha .campanha) section[data-framer-name="Content Section"] > div > :is([data-framer-name="Subtitle"], [data-framer-name="Divider"]),
body:has(.abdesm-ilha .campanha[data-uma-foto]) section[data-framer-name="Gallery Section"] { display: none !important; }
/* Sem a capa rosa (que reservava a altura do cabeçalho fixo), o conteúdo começa abaixo dele (99 px; 80 px no celular). */
body:has(.abdesm-ilha .campanha) section[data-framer-name="Content Section"] { padding-top: 132px !important; }
@media (max-width: 809.98px) { body:has(.abdesm-ilha .campanha) section[data-framer-name="Content Section"] { padding-top: 104px !important; } }
.campanha-capa { display: grid; gap: var(--s-5); }
.campanha-titulo { min-width: 0; text-align: center; }
.campanha-titulo .rotulo { justify-content: center; }
.campanha-titulo h1 { max-width: 20ch; margin: 0 auto var(--s-3); font: var(--display-weight) clamp(2.25rem, 1.5rem + 2.6vw, 3.5rem)/1.1 var(--font-display); letter-spacing: -0.027em; }
.campanha-titulo .lead { max-width: 46ch; margin: 0 auto var(--s-3); color: var(--ink-soft); }
.campanha-quem { margin: 0; font-size: var(--text-sm); color: var(--muted); }
.campanha-foto { margin: 0; min-width: 0; }
.campaign-cover { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius); background: var(--surface-soft); }
/* Começo da história junto da foto, no celular: duas linhas e o link para ela inteira (no computador, ela já está à vista). */
.campanha-abre-historia { min-width: 0; margin-top: calc(var(--s-2) - var(--s-5)); }
.campanha-abre-historia p { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; margin: 0; color: var(--ink-soft); }
.campanha-abre-historia a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }
@media (min-width: 64rem) {
  .campanha-abre-historia { display: none; }
  .campanha-capa { padding-bottom: var(--s-4); }
  .campanha-capa:has(> .campanha-foto) { grid-template-columns: 1fr 1.02fr; gap: var(--s-7); align-items: center; }
  .campaign-cover { box-shadow: var(--shadow-media); }
}
.campanha-grade { display: grid; gap: var(--s-6); margin-top: var(--s-4); grid-template-areas: 'conteudo' 'lateral' 'historia' 'extra'; }
.campanha-conteudo { grid-area: conteudo; min-width: 0; }
.campanha-lateral { grid-area: lateral; min-width: 0; display: grid; gap: var(--s-5); align-content: start; }
/* No celular, os valores vêm logo depois da meta: o espaço entre eles é o da grade. */
.campanha-grade .donate-box { padding-top: 0; }
@media (min-width: 64rem) {
  .campanha-grade { grid-template-columns: minmax(0, 1fr) var(--aside); grid-template-rows: auto auto 1fr; grid-template-areas: 'conteudo lateral' 'historia lateral' 'extra lateral'; column-gap: var(--s-7); row-gap: var(--s-6); }
  .campanha-conteudo, .narrativa, .campanha-extra { max-width: var(--measure); }
}
.btn-doar { margin-top: var(--s-5); animation: pulsar 2s ease-out 1.4s 2; }
.btn-doar:active { transform: scale(0.98); animation: none; }
.narrativa { grid-area: historia; min-width: 0; scroll-margin-top: calc(var(--header-h) + var(--s-4)); }
.story > * { max-width: var(--measure); }
.story p, .story li { font-size: var(--text-story); line-height: var(--leading-story); color: var(--ink-soft); }
.story p { margin-bottom: var(--s-5); }
.story strong { color: var(--ink); background: linear-gradient(180deg, transparent 62%, var(--marker) 62%); }
.story blockquote { margin: var(--s-5) 0; padding: var(--s-1) 0 var(--s-1) var(--s-4); border-left: 3px solid var(--warm-line); font-style: italic; color: var(--ink); }
.story img { border-radius: var(--radius); }
.campanha-extra h2 { font-size: var(--text-xl); }
.caixa-info { background: var(--surface-soft); border: 1px solid var(--line); border-radius: var(--radius-card); padding: var(--s-5); }
.caixa-info p:last-child { margin-bottom: 0; }
.custos.caixa-info { background: var(--surface-gold); border-color: var(--gold-100); }
.quem-recebe.caixa-info { background: var(--surface-blue); border-color: var(--navy-100); }
.dados-org { display: grid; gap: var(--s-2) var(--s-5); margin: 0 0 var(--s-4); }
@media (min-width: 40rem) {
  .dados-org { grid-template-columns: 1fr 1fr; }
}
.dados-org dt { font-size: var(--text-sm); color: var(--muted); }
.dados-org dd { margin: 0; font-weight: 700; color: var(--ink); }
.custos-tabela { width: 100%; border-collapse: collapse; margin: 0 0 var(--s-4); font-variant-numeric: tabular-nums; }
.custos-tabela th, .custos-tabela td { padding: var(--s-2) 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.custos-tabela td { padding-left: var(--s-4); text-align: right; white-space: nowrap; font-weight: 700; color: var(--ink); }
.custos-tabela tbody th { font-weight: 400; }
.custos-tabela thead th { font-size: var(--text-sm); color: var(--muted); font-weight: 700; }
.custos-tabela thead th:last-child { text-align: right; }
.custos-tabela tfoot th, .custos-tabela tfoot td { border-bottom: 0; border-top: 2px solid var(--ink); font-weight: 800; color: var(--ink); }
.doar-fixo { position: fixed; inset: auto 0 0; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); padding: var(--s-3) var(--s-4) calc(var(--s-3) + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line); border-radius: var(--radius-lg) var(--radius-lg) 0 0; box-shadow: var(--shadow-sheet); animation: subir 0.34s var(--ease-out); }
.doar-fixo-info { display: flex; flex-direction: column; min-width: 0; margin: 0; line-height: 1.3; }
.doar-fixo-info strong { font-size: var(--text-sm); color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.doar-fixo-info span { font-size: var(--text-xs); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.doar-fixo .btn-doar { flex: none; margin: 0; min-height: 48px; padding-inline: var(--s-5); border-radius: var(--radius-pill); font-size: var(--text-base); animation: none; }
@media (min-width: 64rem) {
  .doar-fixo { left: auto; right: var(--s-6); bottom: var(--s-6); width: 24rem; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-float); padding: var(--s-3) var(--s-3) var(--s-3) var(--s-5); }
}
body:has(.doar-fixo) { padding-bottom: 88px; }
@media (min-width: 64rem) {
  body:has(.doar-fixo) { padding-bottom: 0; }
  /* No fim da página a barra (108px a partir do fundo) fica por cima da faixa dos selos: a faixa abre espaço embaixo, e o
     CNPJ e o endereço ficam acima dela. Em rem, como a barra, que cresce com o texto; e também com a barra escondida: se o
     espaço só entrasse com ela, quem pula para o fim da página (End) pararia com o CNPJ coberto. Na barra, o CNPJ quebra a
     linha em vez de ser cortado. */
  body:has(.doar-fixo) > .abdesm-selos { padding-bottom: 6.5rem; }
  .doar-fixo-info span { white-space: normal; }
}
@keyframes encher { from { transform: scaleX(0); } }
@keyframes brilho { from { transform: translateX(-100%); } to { transform: translateX(200%); } }
@keyframes pulsar { 0% { box-shadow: 0 0 0 0 rgb(15 15 15 / 0.5); } 70% { box-shadow: 0 0 0 14px rgb(15 15 15 / 0); } 100% { box-shadow: 0 0 0 0 rgb(15 15 15 / 0); } }
@keyframes subir { from { transform: translateY(100%); } }
@keyframes aparecer { from { opacity: 0; } }
@keyframes surgir { from { opacity: 0; transform: translateY(8px); } }
@keyframes da-direita { from { opacity: 0; transform: translateX(32px); } }
@keyframes da-esquerda { from { opacity: 0; transform: translateX(-32px); } }
@keyframes realce { 0% { color: var(--teal-700); transform: scale(1.12); } 100% { transform: none; } }
@keyframes tracar { to { stroke-dashoffset: 0; } }
@keyframes estalar { 0% { transform: scale(0.6); opacity: 0; } 60% { transform: scale(1.08); opacity: 1; } 100% { transform: none; } }
.taxa-coberta { background: var(--accent-soft); border: 1.5px solid var(--accent-line); border-radius: var(--radius); padding: var(--s-3) var(--s-4); }
.taxa-coberta label strong { color: var(--ink); }
.taxa-coberta .hint { grid-column: 2; margin: 0; }
.selo-escolhido { position: absolute; top: -0.7rem; left: 50%; transform: translateX(-50%); padding: 0 var(--s-2); border-radius: 999px; background: var(--warm); color: var(--on-warm); font-size: 0.65rem; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; white-space: nowrap; line-height: 1.5; }
.amount-options { row-gap: var(--s-4); padding-top: var(--s-3); }
.check-pago { display: block; width: 72px; height: 72px; margin-bottom: var(--s-4); color: var(--accent); animation: estalar 0.5s ease-out both; }
.check-pago circle { stroke-dasharray: 152; stroke-dashoffset: 152; animation: tracar 0.6s ease-out 0.1s forwards; }
.check-pago path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: tracar 0.35s ease-out 0.6s forwards; }
@media (prefers-reduced-motion: reduce) {
  .check-pago circle, .check-pago path { stroke-dashoffset: 0; }
}
.mapa { margin: var(--s-4) 0 0; }
.mapa-moldura { height: clamp(220px, 45vw, 320px); overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-soft); }
.mapa iframe { display: block; width: 100%; height: 100%; border: 0; }
.mapa figcaption { margin-top: var(--s-1); font-size: var(--text-sm); }
.mapa a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }
html[data-texto] .campanha-grade > *, html[data-leitura] .campanha-grade > * { min-width: 0; }
.abdesm-ilha-campanha { padding: 0; border-radius: 0; background: none; }

/* Campos do formulário de contato do layout. */

.field label, .amounts legend { font-size: var(--text-sm); color: var(--muted); }
.field input[type='text'], .field input:not([type]), .field input[type='email'], .field input[type='tel'], .field input[type='password'], .pix-box textarea { min-height: 51px; padding: 14px 16px; border-width: 1px; font: 400 var(--text-base)/1.2 var(--font); }
.ilha-voltar { margin: var(--s-5) 0 0; }

/* Opções de pagamento dividindo a linha toda (no grid, o aviso de largura total deixava uma coluna vazia). */
.metodos { display: flex; flex-wrap: wrap; }
.metodos > .metodo-option { flex: 1 1 6.5rem; }
.metodos > :not(legend, .metodo-option) { flex-basis: 100%; }

/* Tabelas (área do doador, tabela do gráfico): linhas finas, cabeçalho apagado, rolagem lateral dentro da caixa. */
.table-wrap { position: relative; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-field); background: var(--surface); }
.table-wrap:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.admin-table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }
.admin-table th, .admin-table td { padding: var(--s-3); text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.admin-table th { color: var(--muted); font-weight: 400; }
.admin-table tbody tr:last-child td { border-bottom: 0; }
.nowrap { white-space: nowrap; }
.pill { display: inline-block; padding: 0 var(--s-2); border: 1px solid var(--field-border); border-radius: var(--radius-pill); font-size: 0.8125rem; color: var(--ink-soft); white-space: nowrap; }
.pill:is([data-status='paga'], [data-status='ativa']) { border-color: var(--ink); background: var(--accent-soft); color: var(--ink); }
.pill:is([data-status='revisao'], [data-status='estornada'], [data-status='chargeback']) { border-color: var(--danger); color: var(--danger); }
.pill[data-status='cancelada'] { color: var(--muted); }

/* Área do doador: painel da conta no cartão (boas-vindas, números, gráfico por mês, doação mensal, impacto, lista e
   sugestões), em uma coluna. */
.doador-painel { display: grid; gap: var(--s-5); }
.doador-painel > * { min-width: 0; margin: 0; }
.doador-topo { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: var(--s-4); padding: var(--s-5); border-radius: var(--radius-card); background: var(--accent-soft); }
.doador-topo > div { flex: 1 1 18rem; min-width: 0; }
.doador-topo h2 { margin: 0 0 var(--s-3); font-size: var(--text-xl); }
.doador-topo .lead { margin-bottom: var(--s-2); font-size: var(--text-base); }
.doador-topo .lead strong { white-space: nowrap; }
.doador-email { margin: 0; font-size: var(--text-sm); color: var(--ink-soft); overflow-wrap: anywhere; }
.doador-sair { margin: 0; }
.doador-sair .btn { min-height: 44px; padding: 8px 20px; font-size: var(--text-base); }
.kpis { display: grid; gap: var(--s-2); }
.doador-kpis { grid-template-columns: repeat(auto-fit, minmax(min(100%, 8rem), 1fr)); }
.kpi { display: grid; gap: 2px; align-content: start; min-width: 0; padding: var(--s-3); border: 1px solid var(--line); border-radius: var(--radius-field); background: var(--surface-soft); }
.kpi-rotulo, .kpi-extra { font-size: var(--text-sm); color: var(--muted); }
.kpi-valor { font-size: 1.25rem; font-weight: 400; line-height: 1.2; color: var(--ink); overflow-wrap: anywhere; }
.painel-bloco { padding: var(--s-5); border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--surface); }
@media (max-width: 809.98px) {
  .painel-bloco, .doador-topo { padding: var(--s-4); }
  /* No celular, a lista das doações já tem a moldura dela: sem a do bloco, cada linha ganha largura. */
  .painel-bloco:has(.doador-tabela) { padding: 0; border: 0; }
}
.painel-bloco > :last-child { margin-bottom: 0; }
.bloco-cabeca { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: var(--s-1) var(--s-3); margin-bottom: var(--s-3); }
.bloco-cabeca h2, .doador-sugestoes h2, .empty h2 { margin: 0; font-size: var(--text-xl); }
.inicio-duas { display: grid; gap: var(--s-5); }
.mensal-lista, .impacto-lista { display: grid; gap: var(--s-4); }
.mensal-lista li + li, .impacto-lista li + li { padding-top: var(--s-4); border-top: 1px solid var(--line); }
.mensal-lista p { margin: 0 0 var(--s-1); }
.mensal-topo { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-2); }
.mensal-valor { font-size: var(--text-xl); font-weight: 400; color: var(--ink); }
.mensal-valor .muted { font-size: var(--text-base); }
.mensal-campanha, .impacto-nome { overflow-wrap: anywhere; }
.doador-mensal .btn { margin-top: var(--s-2); }
.doador-dica { margin: var(--s-4) 0 0; font-size: var(--text-sm); }
.mini-numeros { margin: 0; font-size: var(--text-sm); color: var(--muted); }
.mini-numeros strong { color: var(--ink); }
.empty { padding: var(--s-5); border: 1px dashed var(--field-border); border-radius: var(--radius-card); background: var(--surface-soft); text-align: center; }
.empty h2 { margin-bottom: var(--s-3); }
.doador-sugestoes h2 { margin-bottom: var(--s-4); }
/* Lista das doações: cada doação vira uma linha-cartão (data e valor em cima, campanha, situação e comprovante embaixo),
   sem rolar de lado no cartão estreito. Os role= do HTML mantêm a semântica de tabela. */
.doador-tabela thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.doador-tabela, .doador-tabela tbody { display: block; }
.doador-tabela tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s-1) var(--s-3); align-items: center; padding: var(--s-3); border-bottom: 1px solid var(--line); }
.doador-tabela tbody tr:last-child { border-bottom: 0; }
.doador-tabela td { display: block; padding: 0; border: 0; white-space: normal; }
.doador-tabela td:nth-child(1) { font-size: var(--text-sm); color: var(--muted); }
.doador-tabela td:nth-child(2) { grid-column: 1 / -1; grid-row: 2; font-size: var(--text-base); }
.doador-tabela td:nth-child(3) { grid-column: 2; grid-row: 1; text-align: right; font-size: var(--text-base); color: var(--ink); }
.doador-tabela td:nth-child(5) { text-align: right; }
.doador-tabela td:nth-child(5) a { display: inline-flex; align-items: center; min-height: 44px; }
.doador-tabela td:nth-child(5):empty { display: none; }

/* Gráfico de colunas (desenhado no servidor; a dica vem do grafico.js). */
.chart { margin: 0; min-width: 0; }
.chart figcaption h2 { margin: 0; font-size: var(--text-xl); }
.chart figcaption p { margin: var(--s-1) 0 var(--s-4); font-size: var(--text-sm); }
.chart-vazio { margin: 0; padding: var(--s-5) 0; color: var(--muted); text-align: center; }
.chart-body { display: grid; grid-template-columns: auto 1fr; gap: var(--s-2); }
.chart-y { display: flex; flex-direction: column; justify-content: space-between; font-size: var(--text-xs); color: var(--muted); text-align: right; white-space: nowrap; }
.chart-y span:nth-child(1) { transform: translateY(-50%); }
.chart-y span:nth-child(2) { transform: translateY(-16.7%); }
.chart-y span:nth-child(3) { transform: translateY(16.7%); }
.chart-y span:nth-child(4) { transform: translateY(50%); }
.chart-plot { position: relative; min-width: 0; }
.chart-svg { display: block; width: 100%; height: 10rem; overflow: visible; }
.chart-svg:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
.chart-svg .grid { stroke: var(--line); stroke-width: 1; }
.chart-svg .grid:first-of-type { stroke: var(--field-border); }
.chart-svg .hit { fill: transparent; }
.chart-svg .bar { fill: var(--ink); }
.chart-svg .mark.ativo .hit { fill: rgb(32 46 63 / 0.06); }
.chart-svg .mark.ativo .bar { fill: var(--accent); }
.chart-x { display: flex; justify-content: space-between; font-size: var(--text-xs); color: var(--muted); }
.chart-tip { position: absolute; top: 0; left: 0; z-index: 2; pointer-events: none; padding: var(--s-2) var(--s-3); border: 1px solid var(--line); border-radius: var(--radius-field); background: var(--surface); box-shadow: var(--shadow-float); font-size: var(--text-sm); line-height: 1.3; white-space: nowrap; }
.chart-tip strong { display: block; font-size: var(--text-base); font-weight: 400; color: var(--ink); }
.chart-tip span { color: var(--muted); }
.chart-tabela { margin-top: var(--s-3); }
.chart-tabela summary { display: flex; align-items: center; min-height: 44px; color: var(--ink); text-decoration: underline; text-underline-offset: 0.18em; cursor: pointer; }
.chart-tabela .table-wrap { max-height: 18rem; overflow-y: auto; }

/* Cartões das campanhas sugeridas: duas colunas quando o cartão da ilha tem largura, uma no celular. */
.campaign-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr)); gap: var(--s-4); }
.campaign-card { display: flex; flex-direction: column; overflow: hidden; padding-bottom: var(--s-4); border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--surface); }
.campaign-card > :not(.campaign-card-link) { margin-left: var(--s-4); margin-right: var(--s-4); }
.campaign-card-link { display: block; color: inherit; text-decoration: none; }
.campaign-card-link img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; margin-bottom: var(--s-3); background: var(--surface-soft); }
.campaign-card-link .tag, .campaign-card-link .card-title { margin-left: var(--s-4); margin-right: var(--s-4); }
.tag { display: inline-block; margin-bottom: var(--s-2); padding: 2px var(--s-3); border-radius: var(--radius-pill); background: var(--accent-soft); color: var(--ink); font-size: var(--text-sm); }
.card-title { margin-bottom: var(--s-2); font-size: var(--text-lg); font-weight: 400; color: var(--ink); }
.campaign-card-link:hover .card-title { text-decoration: underline; }
.campaign-card .muted { flex: 1; font-size: var(--text-sm); }
.raised { margin: 0; font-size: var(--text-sm); color: var(--muted); }
.raised strong { color: var(--ink); }
@media (prefers-reduced-motion: no-preference) {
  .doador-kpis .kpi { animation: surgir 0.45s ease-out both; }
  .doador-kpis .kpi:nth-child(2) { animation-delay: 0.06s; }
  .doador-kpis .kpi:nth-child(3) { animation-delay: 0.12s; }
  .doador-kpis .kpi:nth-child(4) { animation-delay: 0.18s; }
  .doador-kpis .kpi:nth-child(5) { animation-delay: 0.24s; }
  .doador-grafico .bar { transform-box: fill-box; transform-origin: bottom; animation: crescer 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) 0.2s both; }
}
@keyframes crescer { from { transform: scaleY(0); } }
