/* MAILBOX BLOCK (ADR-043): the paper card of the poll with a band on the
   left in the slate of the labels (--label-color), only tokens. */
.block-mailbox {
  display: flex;
  gap: var(--spacing-md);
  align-items: flex-start;
  max-width: 44rem;
  margin: 0 auto;
  padding: var(--spacing-lg) var(--spacing-md);
  background: var(--paper-bg);
  border-left: 0.375rem solid var(--label-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  scroll-margin-top: var(--spacing-lg);
}

.block-mailbox__icon {
  flex: none;
  width: 3rem;
  height: 3rem;
  color: var(--accent-blue);
  fill: currentColor;
}

.block-mailbox__body {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  min-width: 0;
}

/* A card title: ADR-034's serious serif, in sentence case. */
body:not(.admin) .block-mailbox__title {
  margin: 0;
  font-family: var(--font-title-serious);
  font-weight: 600;
  line-height: 1.2;
  text-transform: none;
  letter-spacing: 0;
}

.block-mailbox__text,
.block-mailbox__note { margin: 0; }

.block-mailbox__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--spacing-sm) var(--spacing-md);
  margin: var(--spacing-xs) 0 0;
}

/* The address breaks anywhere on a phone rather than push the card. */
.block-mailbox__address { overflow-wrap: anywhere; font-weight: 600; }

.block-mailbox__note { color: var(--text-muted); font-size: 0.85rem; }

/* On a phone the envelope goes above the title, keeping the text wide. */
@media (max-width: 479px) {
  .block-mailbox { flex-direction: column; gap: var(--spacing-sm); }
  .block-mailbox__icon { width: 2.5rem; height: 2.5rem; }
}

/* Historias de Vivienda keeps its button in the slate of the chrome, not
   in the coral the other solid buttons took on 17 October 2026 (ADR-050):
   Juan wants the coral for the strike and «algunos» buttons in blue, this
   one first. The chrome pair was measured with the chrome itself
   (tokens.css), so the hover's brightness filter still leaves it AA. */
.block-mailbox .btn-primary {
  background: var(--chrome-bg);
  color: var(--chrome-text);
}
