/* ---------------------------------------------------------------------------
 * Contact — follow links and the Dysfunctional Mailbox.
 * ------------------------------------------------------------------------- */

/* --- follow buttons --------------------------------------------------------
 * Carried over from the live holding page, which is where they already were,
 * including the Instagram pink. These are the route to a human, so on a page
 * whose main feature is a mailbox called Dysfunctional they are the loudest
 * thing on it.
 * ------------------------------------------------------------------------- */
.links { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }

.lk {
  font-family: var(--disp); font-weight: 700; font-size: 12.5px;
  text-decoration: none; padding: 11px 20px; border-radius: 6px;
  border: 2px solid var(--line); color: var(--line);
  background: rgba(94, 200, 216, .08);
  transition: transform .1s, filter .15s;
}
.lk:hover { transform: scale(1.02); filter: brightness(1.25); }
.lk.ig { border-color: #C96FA8; color: #C96FA8; background: rgba(201, 111, 168, .08); }

/* --- the mailbox ---------------------------------------------------------- */
.panel.mailbox { padding: 18px 20px 20px; margin-top: 14px; }

.mb-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 14px; padding-bottom: 13px; margin-bottom: 14px;
  border-bottom: 1px solid var(--line-dim);
}
.mb-lab {
  font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-dim);
}
.mb-addr {
  font-family: var(--disp); font-weight: 700; font-size: 15px;
  letter-spacing: .06em; color: var(--line); margin-top: 3px;
}
/* Rotated, like something stamped on a returned envelope. */
.mb-stamp {
  flex: 0 0 auto; font-size: 9px; font-weight: 600; letter-spacing: .14em;
  color: var(--crit); border: 2px solid var(--crit); border-radius: 3px;
  padding: 5px 9px; transform: rotate(-6deg); opacity: .85; white-space: nowrap;
}

.mb-lead { font-size: 11.5px; line-height: 1.8; color: var(--ink-dim); margin: 0 0 14px; }

/* The one part of the page that is not in character. */
.mb-warn { margin: 0 0 16px; }

.mb-field { display: block; }
.mb-flab {
  display: block; font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-dim); margin-bottom: 7px;
}
#mbText {
  width: 100%; background: var(--panel-2); color: var(--ink);
  border: 1px solid var(--line-dim); border-radius: 5px; padding: 11px 12px;
  font-family: var(--mono); font-size: 12px; line-height: 1.7; resize: vertical;
}
#mbText:focus { outline: none; border-color: var(--line); }
#mbText::placeholder { color: var(--ink-dim); opacity: .7; }

.mb-row {
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px; margin-top: 11px; flex-wrap: wrap;
}
.mb-count { font-size: 10px; color: var(--ink-dim); font-variant-numeric: tabular-nums; }

/* --- the automatic reply -------------------------------------------------- */
.mb-reply {
  margin-top: 18px; padding: 15px 16px;
  border: 1px solid var(--line-dim); border-left: 3px solid var(--warn);
  border-radius: 0 5px 5px 0; background: rgba(242, 201, 76, .05);
}
.mb-reply.empty { border-left-color: var(--crit); background: rgba(232, 84, 74, .05); }

.mb-rhead {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 12px; flex-wrap: wrap; margin-bottom: 11px;
}
.mb-rtag {
  font-size: 9px; font-weight: 600; letter-spacing: .16em; color: var(--warn);
}
.mb-rref {
  font-size: 10px; color: var(--ink-dim); letter-spacing: .06em;
  font-variant-numeric: tabular-nums;
}
.mb-rl { font-size: 11.5px; line-height: 1.85; color: var(--ink-dim); margin: 0 0 10px; }
.mb-rl b { color: var(--ink); }

/* Two columns of label/value: the joke rows and the two honest ones, in the
   same deadpan register. */
.mb-meta {
  display: grid; grid-template-columns: auto 1fr; gap: 4px 14px;
  margin: 14px 0; padding: 12px 0; font-size: 10.5px;
  border-top: 1px dashed var(--line-dim); border-bottom: 1px dashed var(--line-dim);
}
.mb-meta dt { color: var(--ink-dim); letter-spacing: .04em; }
.mb-meta dd { margin: 0; color: var(--ink); font-variant-numeric: tabular-nums; }

.mb-rfoot {
  font-size: 10.5px; line-height: 1.8; color: var(--ink-dim); margin: 0;
  padding-top: 4px;
}

@media (max-width: 480px) {
  .mb-head { flex-direction: column; }
  .mb-stamp { transform: none; align-self: flex-start; }
  .links { flex-direction: column; }
  .lk { text-align: center; }
}

/* The optional email field. */
#mbEmail {
  width: 100%; background: var(--panel-2); color: var(--ink);
  border: 1px solid var(--line-dim); border-radius: 5px; padding: 10px 12px;
  font-family: var(--mono); font-size: 12px;
}
#mbEmail:focus { outline: none; border-color: var(--line); }
#mbEmail::placeholder { color: var(--ink-dim); opacity: .7; }
.mb-field + .mb-field { margin-top: 13px; }

/* A successful registration is green-railed rather than amber: the mailbox
   really did take it, and the reader should be able to tell that from the
   colour before reading a word of the joke. */
.mb-reply.ok { border-left-color: var(--ok); background: rgba(111, 231, 179, .05); }
.mb-reply.ok .mb-rtag { color: var(--ok); }
