/* O modal (Tim, 23/10/2026: o branco; medidas da prova do Hermes): o <dialog> nativo, aberto pelo casca.js com
   showModal, segura o foco, fecha no Esc e devolve o foco a quem abriu. Hoje, a newsletter (_newsletter_modal.html). */
.md { box-sizing: border-box; width: min(440px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 36px 32px 28px;
  border: 0; border-radius: var(--r-lg); overflow: auto; background: var(--surface); color: var(--text-primary);
  box-shadow: 0 24px 64px rgba(4, 12, 30, .28); }
.md::backdrop { background: rgba(8, 20, 46, .55); }
.md-fechar { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; display: grid; place-items: center; padding: 0;
  border: 0; border-radius: var(--r-sm); background: none; color: var(--text-secondary); cursor: pointer; }
.md-fechar:hover { background: var(--bg-subtle); color: var(--text-primary); }
.md-fechar:focus-visible { outline: 2px solid var(--focus-outline); }
.md-fechar svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; }
.md-h { margin: 0 0 6px; padding-right: 40px; font: 600 24px/1.2 var(--font-heading); letter-spacing: -.01em; }
.md-sub { margin: 0; font-size: 15px; line-height: 1.45; color: var(--text-secondary); }
.md-aviso { margin: 16px 0 0; font-size: 15px; line-height: 1.45; font-weight: 500; }
.md-aviso:empty { margin: 0; }  /* sempre na pagina, vazio: o leitor de tela anuncia a regiao viva que ja existia (Hermes, 24/10/2026) */
.md form { display: grid; gap: 10px; margin-top: 16px; }
.md .field { max-width: none; }
.md .field input { box-sizing: border-box; }
.md .btn-primary, .md-ok { width: 100%; min-height: 44px; }
.md-ok { margin-top: 20px; }
.md-nota { margin: 12px 0 0; font-size: 12.5px; line-height: 1.4; color: var(--text-secondary); }
.md-nota a { color: inherit; }
@media (max-width: 600px) { .md { padding: 32px 20px 24px; } }
.md [hidden] { display: none; }
