/* Plano B do link de e-mail ----------------------------------------------
 * Quando o navegador não abre o cliente de e-mail, o site oferece copiar o
 * endereço. São dois formatos:
 *   .email-fallback  painel sob o link que mostra o endereço;
 *   .email-toast     aviso flutuante para botões que só abrem o e-mail.
 * O painel usa a cor do contexto (rodapé escuro / página Sobre clara), por
 * isso `currentColor`; o aviso flutuante é sempre escuro, para ser legível
 * sobre qualquer fundo.
 */
.email-fallback {
  flex: 0 0 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem .8rem;
  margin-top: .85rem;
  padding: .6rem .8rem;
  font-size: .8125rem;
  line-height: 1.45;
  color: inherit;
  border: 1px solid rgba(140, 150, 160, .38);
  border: 1px solid color-mix(in srgb, currentColor 32%, transparent);
  border-radius: 8px;
  background: rgba(140, 150, 160, .10);
  background: color-mix(in srgb, currentColor 9%, transparent);
}

.email-fallback__texto {
  flex: 1 1 18rem;
  margin: 0;
}

.email-acao {
  font: inherit;              /* botão não herda font-family */
  font-weight: 600;
  color: inherit;
  background: transparent;
  border: 1px solid rgba(140, 150, 160, .5);
  border: 1px solid color-mix(in srgb, currentColor 45%, transparent);
  border-radius: 999px;
  padding: .45rem .95rem;
  min-height: 40px;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease;
}

.email-acao:hover {
  background: rgba(140, 150, 160, .16);
  background: color-mix(in srgb, currentColor 14%, transparent);
}

.email-acao:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

.email-acao.is-ok {
  border-color: rgba(140, 150, 160, .8);
  border-color: color-mix(in srgb, currentColor 70%, transparent);
}

/* Aviso flutuante -------------------------------------------------- */
.email-toast {
  position: fixed;
  left: 50%;
  bottom: 1.25rem;
  transform: translateX(-50%);
  z-index: 120;                 /* acima do header fixo (100) */
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .35rem .8rem;
  width: min(32rem, calc(100vw - 2rem));
  padding: .85rem 1rem;
  font-size: .875rem;
  line-height: 1.45;
  color: #fff;
  background: var(--navy, #052a66);
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(3, 20, 45, .32);
}

.email-toast__texto {
  flex: 1 1 100%;           /* mensagem ocupa a linha inteira */
  margin: 0;
  padding-right: 2.2rem;     /* espaço do botão de fechar */
}

.email-toast__endereco {
  flex: 1 1 auto;
  margin: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .8125rem;
  color: #9fd0ff;
  overflow-wrap: anywhere;
}

.email-toast .email-acao {
  flex: 0 0 auto;
  color: #fff;
  border-color: rgba(255, 255, 255, .45);
}

.email-toast .email-acao:hover {
  background: rgba(255, 255, 255, .16);
}

.email-toast__fechar {
  position: absolute;
  top: .45rem;
  right: .45rem;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: inherit;
  font-size: 1.25rem;
  line-height: 1;
  color: inherit;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 999px;
  cursor: pointer;
}

.email-toast__fechar:hover { background: rgba(255, 255, 255, .14); }
.email-toast__fechar:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .email-acao { transition: none; }
}
