/* /secret-santa-generator-whatsapp only. Loaded after styles/site.css; use its tokens (var(--ink), var(--tag), ...). Empty files are not linked. See docs/WRITERS.md. */

/* The preview mock: what the person gets in their own chat. Drawn in the
   site's paper colors, not WhatsApp's, so it reads as an illustration of the
   message rather than a copy of the app. */
.wa-mock { margin: 28px 0 12px; }
.wa-chat {
  max-width: 24rem; margin: 0 auto;
  background: var(--tag-2); color: var(--ink);
  border: 1px solid var(--tag-edge); border-radius: 10px;
  box-shadow: 0 1px 0 var(--edge), 0 14px 22px -18px var(--shadow);
  padding: 0 12px 14px; overflow: hidden;
}
.wa-chat p { margin: 0; }
.wa-chat-head {
  display: flex; align-items: center; gap: 10px;
  margin: 0 -12px 14px !important; padding: 10px 12px;
  background: var(--tag); border-bottom: 1px solid var(--rule);
  font-weight: 600;
}
.wa-chat-sub { font-weight: 400; color: var(--muted); font-size: 0.88rem; }
.wa-avatar {
  flex: none; display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink); font: 600 0.95rem/1 var(--serif);
}
.wa-bubble {
  position: relative; max-width: 88%;
  background: var(--field); border: 1px solid var(--line); border-radius: 0 10px 10px 10px;
  padding: 5px 5px 6px; font-size: 0.95rem; line-height: 1.4;
}
/* the little corner a chat bubble hangs from */
.wa-bubble::before {
  content: ""; position: absolute; top: -1px; left: -9px; width: 9px; height: 12px;
  background: var(--field); border-top: 1px solid var(--line);
  clip-path: polygon(0 0, 100% 0, 100% 100%);
}
.wa-preview {
  background: var(--tag-2); border-left: 3px solid var(--accent); border-radius: 6px;
  padding: 8px 10px; margin-bottom: 6px;
}
.wa-preview-t { font-weight: 700; }
.wa-preview-d { color: var(--muted); font-size: 0.88rem; margin-top: 2px !important; }
.wa-preview-u { color: var(--muted); font-size: 0.8rem; margin-top: 4px !important; }
.wa-text, .wa-url { padding: 0 5px; }
.wa-url { color: var(--link); overflow-wrap: anywhere; margin-top: 2px !important; font-size: 0.9rem; }
.wa-time { text-align: right; color: var(--muted); font-size: 0.75rem; padding: 2px 5px 0; }
.wa-mock figcaption { text-align: center; max-width: 26rem; margin: 10px auto 0; text-wrap: balance; }

@media print {
  .wa-mock { display: none; }
}
